package script;

import static org.junit.Assert.assertEquals;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

import action.Login;
import utility.DriverFactory;
import utility.UITest;

public class loginTest extends UITest {

	WebDriver driver=DriverFactory.getChromeDriver();

	

	@Parameters({"browser"})
	@BeforeMethod(alwaysRun=true)
	public void init()
	{
		
		super.init(driver);
		Login.setDriver(driver);
	}
	@Test(groups="login")
	public void login() throws Exception
	{
		Login.login();

		
//		Login.loginOut();
	}

	@AfterMethod(alwaysRun=true)
	public void stop() {
		super.stop();
	}

}
